package view;

import java.awt.Graphics;
import javax.swing.ImageIcon;
import utility.ImageToolbox;

/**
 *
 * @author Maja Gliese
 */
public class StartSkærm extends javax.swing.JPanel {

    private final MainGUI mainGUI;

    /**
     * Creates new form LoginPanel
     *
     * @param mainGUI
     */
    public StartSkærm(MainGUI mainGUI) {
        initComponents();
        this.mainGUI = mainGUI;
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel(){
            public void paint(Graphics g){
                ImageToolbox.drawImage(g, (ImageIcon) jLabel1.getIcon(), 0, 0, jLabel1.getWidth(), jLabel1.getHeight());
            }
        };

        setBackground(new java.awt.Color(217, 229, 228));
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });
        setLayout(null);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/HHbaggrund.jpg"))); // NOI18N
        add(jLabel1);
        jLabel1.setBounds(0, 0, 810, 610);
    }// </editor-fold>//GEN-END:initComponents


    private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown
//        loginDialog.setVisible(true);
    }//GEN-LAST:event_formComponentShown


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
